package com.cgy.repository;

import javax.transaction.Transactional;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.web.bind.annotation.PathVariable;

import com.cgy.entity.Keshi;

public interface keshiRepository extends JpaRepository<Keshi, Integer> ,JpaSpecificationExecutor<Keshi> {
	@Query(value = "delete from Keshi WHERE kid=?1")  
    @Modifying 
    @Transactional 
	Integer deleteKeshi(Integer kid);
}
